import request from '@/utils/request'

// 获取验证码
export function getCaptchaImage() {
    return request({
        url: '/system/loginController/getCaptchaImage',
        method: 'get'
    })
}

// 登录
export function login(data) {
    return request({
        url: '/system/loginController/login',
        method: 'post',
        data: data
    })
}

// 获取用户信息
export function getInfo() {
    return request({
        url: '/system/loginController/getInfo',
        method: 'get'
    })
}

// 退出登录
export function logout() {
    return request({
        url: '/system/loginController/logout',
        method: 'post'
    })
}
